307e60562d596a385d97818c50d5e90390e88c0e,src/main/java/com/couchbase/lite/store/ForestDBStore.java,ForestDBStore,getPossibleAncestorRevisionIDs,#RevisionInternal#number#AtomicBoolean#,468

Before Change



        VersionedDocument doc = null;
        try {
            doc = new VersionedDocument(forest, new Slice(rev.getDocID().getBytes()));
        } catch (Exception e) {
            Log.w(TAG, "ForestDB Error: " + e.getMessage(), e);
            return null;

After Change



        Document doc;
        try {
            doc = forest.getDocument(rev.getDocID(), true);
        } catch (ForestException e) {
            if(e.domain == C4ErrorDomain.ForestDBDomain && e.code == FDBErrors.FDB_RESULT_KEY_NOT_FOUND) {
                return null;
            }else{
                Log.e(TAG, "Error in getPossibleAncestorRevisionIDs()", e);
                return null;
            }
        }
        if(!doc.exists()){
            doc.free();
            return null;
        }